package com.icangya.service.impl;


import com.icangya.DAO.IFbIpRequestDAO;
import com.icangya.domain.FBIpRequest;
import com.icangya.service.ISystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SystemServiceImpl implements ISystemService {

    @Autowired
    private IFbIpRequestDAO iFbIpRequestDAO;

    @Override
    public List<FBIpRequest> selectIpRequestByIpAndCreateTime(String ip, String createTime) {
        return iFbIpRequestDAO.selectIpRequestByIpAndCreateTime(ip,createTime);
    }

    @Override
    public long save(FBIpRequest fbIpRequest) {

        long c  = (long) iFbIpRequestDAO.save(fbIpRequest);
        return c;
    }
}
